package com.filldream.fastboot.base.response.pc;

import com.filldream.fastboot.base.entity.Menu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@ApiModel("PC-菜单权限DTO")
@Data
public class MenusDTO {

    @ApiModelProperty("所有已选权限树状图")
    private List<MenuDTO> menuList;

    @ApiModelProperty("所有已选权限ID")
    private List<Long> menus = new ArrayList<>();

    //-------辅助字段-------

    @ApiModelProperty("所有已选菜单树状图，仅登陆有")
    private List<MenuDTO> yesMenu;

    @ApiModelProperty("所有已选菜单ID，仅登陆有")
    private List<Long> yesMenuIds = new ArrayList<>();

    @ApiModelProperty("所有已选非菜单列表，仅登陆有")
    private List<Menu> noMenu;

    @ApiModelProperty("所有已选非菜单ID，仅登陆有")
    private List<Long> noMenuIds = new ArrayList<>();

    @ApiModelProperty(value = "权限code集",hidden = true)
    private List<String> codes = new ArrayList<>();

    @ApiModelProperty(value = "权限url集",hidden = true)
    private List<String> urls = new ArrayList<>();

    public MenusDTO() {
    }


}
